package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 消息
 */
@ApiModel(description = "消息")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class Message   {
  @JsonProperty("id")
  private Long id = null;

  @JsonProperty("catalog")
  private String catalog = null;

  @JsonProperty("title")
  private String title = null;

  @JsonProperty("content")
  private String content = null;

  @JsonProperty("createTime")
  private String createTime = null;

  public Message id(Long id) {
    this.id = id;
    return this;
  }

  /**
   * 消息id
   * @return id
  **/
  @ApiModelProperty(value = "消息id")


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Message catalog(String catalog) {
    this.catalog = catalog;
    return this;
  }

  /**
   * 消息分类
   * @return catalog
  **/
  @ApiModelProperty(value = "消息分类")


  public String getCatalog() {
    return catalog;
  }

  public void setCatalog(String catalog) {
    this.catalog = catalog;
  }

  public Message title(String title) {
    this.title = title;
    return this;
  }

  /**
   * 消息标题
   * @return title
  **/
  @ApiModelProperty(value = "消息标题")


  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public Message content(String content) {
    this.content = content;
    return this;
  }

  /**
   * 消息内容
   * @return content
  **/
  @ApiModelProperty(value = "消息内容")


  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public Message createTime(String createTime) {
    this.createTime = createTime;
    return this;
  }

  /**
   * 创建时间，时间格式为yyyy-MM-dd HH:mm:ss
   * @return createTime
  **/
  @ApiModelProperty(value = "创建时间，时间格式为yyyy-MM-dd HH:mm:ss")


  public String getCreateTime() {
    return createTime;
  }

  public void setCreateTime(String createTime) {
    this.createTime = createTime;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Message message = (Message) o;
    return Objects.equals(this.id, message.id) &&
        Objects.equals(this.catalog, message.catalog) &&
        Objects.equals(this.title, message.title) &&
        Objects.equals(this.content, message.content) &&
        Objects.equals(this.createTime, message.createTime);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, catalog, title, content, createTime);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Message {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    catalog: ").append(toIndentedString(catalog)).append("\n");
    sb.append("    title: ").append(toIndentedString(title)).append("\n");
    sb.append("    content: ").append(toIndentedString(content)).append("\n");
    sb.append("    createTime: ").append(toIndentedString(createTime)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

